package com.zsc.wxm.ysh.anjo.oss.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 文件服务接口
 * @author playmaker
 * @since 2021-01-12
 */
public interface FileService {

    /**
     * 文件上传
     * @param file
     * @throws IOException
     * @return
     */
    String upload(MultipartFile file) throws IOException;

    /**
     * 文件删除
     * @param url
     */
    void removeImage(String url);

    /**
     * 上传爬虫爬取的图片
     *
     * @throws IOException
     */
    void uploadHouseImage() throws IOException;

}
